<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.5.0");

function tokena(emen, repeat){
	$("#token").val(new Date().getMilliseconds());
	
	//去掉路径中虚拟的目录名
	var reg = new RegExp('\/'+repeat+'\/',"");
	var flag = window.location.pathname.search(reg)>-1;
	if(flag)
		emen.action = emen.action.replace('/'+repeat, '');
}

//TODO 判断浏览器是否支持 JS，和cookie
</script>